﻿// JScript 文件
function TopAd()
{
    var strTopAd="";
	
	//定义小图片内容
    var topSmallBanner="<div><a href=\""+surl+"\" target=_blank><img src=\""+smallimg+"\" width=\"960\" height=\"40\" /></a></div>";
	
	
	//定义大图内容
        strTopAd="<div id=adimage style=\"width:960px\">"+
                    "<div id=adBig><a href=\""+surl+"\" " + 
                    "target=_blank><img "+
                    "src=\""+bigimg+"\" " +
                    "border=0></A></div>"+
                    "<div id=adSmall style=\"display: none\">";
        //strTopAd+=  topFlash;     
		strTopAd+=  topSmallBanner;  
        strTopAd+=  "</div></div>";
	

    
    return strTopAd;
}
document.write(TopAd());
$(function(){
	//过两秒显示 showImage(); 内容
    setTimeout("showImage();",5000);
    //alert(location);
});
function showImage()
{
    $("#adBig").slideUp(1000,function(){$("#adSmall").slideDown(1000);});
}


//图片边框变化开始
		$(function(){
			(function(){
				 $('.common_gg[rel="hover"]').mouseover(function(){						
					$(this).attr('class','common_gg_hover');
				});
				 
				 $('.common_gg[rel="hover"]').mouseout(function(){
					$(this).attr('class','common_gg');
					});
			})();
		});

//图片边框变化结束